home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / dev / amos / AMOSL0495.lzh / AMOSLIST / 000041_svcs1.digex.net!amos-request_ Sat Apr 8 11:44:31 1995 remote from earth.msg < prev    next >
Internet Message Format  |  1995-05-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by earth.usa.net (8.6.10/8.6.10) with SMTP id LAA15200 for <lee.kitchens@georgia.com>; Sat, 8 Apr 1995 11:44:28 -0600
  2. Received: by svcs1.digex.net id AA09690
  3.   (5.67b8/IDA-1.5 for amos-out); Sat, 8 Apr 1995 09:34:23 -0400
  4. Received: from nfs2.digex.net by svcs1.digex.net with SMTP id AA09685
  5.   (5.67b8/IDA-1.5 for <amos@svcs1.digex.net>); Sat, 8 Apr 1995 09:34:22 -0400
  6. Received: from goober.mbhs.edu by nfs2.digex.net with SMTP id AA06469
  7.   (5.67b8/IDA-1.5 for <amos-list@access.digex.net>); Sat, 8 Apr 1995 09:34:20 -0400
  8. Received: from dragon.mbhs.edu by goober.mbhs.edu (AIX 3.2/UCB 5.64/4.03)
  9.           id AA22547; Sat, 8 Apr 1995 09:36:05 -0400
  10. Date: Sat, 8 Apr 1995 09:36:05 -0400
  11. Message-Id: <9504081336.AA22547@goober.mbhs.edu>
  12. From: earth!dragon.mbhs.edu!achurch (Andy Church)
  13. To: earth!access.digex.net!amos-list
  14. Subject: Re: Help me I'm stuck.
  15. Reply-To: earth!goober.mbhs.edu!achurch
  16. X-Mailer: MMail v4.20
  17. Status: O
  18. X-Status: 
  19.  
  20. >I've just started prigramming in Amos.
  21. >I can't figiure out how to make amos time something.
  22. >For example i will type a sentece and it will tell me how long it took for
  23. >me to type it. I have tried the timer command, but it doesn't seem to be
  24. >working right. I have to put it in loop for it to time anything, but then
  25. >I can't input anything.  I'm using amos 1.36. Can anyone help me please.
  26.  
  27.   If anyone's confused about whether Timer is in 60ths or 50ths of a second,
  28. here's the explanation:  Timer is incremented by one every "vertical blank",
  29. also called a "tick" in AMOS - every time the monitor's electron beam
  30. returns to the blank area at the top of the screen.  On NTSC systems, this
  31. occurs 60 times a second; on PAL systems, it's 50 times a second.  To figure
  32. out which system you're running on and adjust your timing routines
  33. accordingly, use this code:
  34.  
  35. If Ntsc
  36.     TICKS_PER_SECOND=60
  37. Else
  38.     TICKS_PER_SECOND=50
  39. End If
  40. ..
  41. T=Timer
  42. ..
  43. SECS=(Timer-T)/TICKS_PER_SECOND
  44.  
  45.   There is one possible problem that will occur: if the user has an NTSC
  46. system but is using a PAL screen (or has a PAL system and is using an NTSC
  47. screen) then the timing will be thrown off.  There's no way I know of to
  48. detect this.  If you want to force a screen mode so that you know your
  49. timing will be right, use one of these:
  50.  
  51. Doke $DFF1DC,$20 : Rem Set to PAL mode
  52. Doke $DFF1DC,0 : Rem Set to NTSC mode
  53.  
  54.   Note that these will not work on OCS systems, and may produce undesirable
  55. results if a non-NTSC, non-PAL screen mode (e.g. Super72) is in use.
  56.  
  57.   --Andy Church (achurch@goober.mbhs.edu)
  58.     WWW: http://www.mbhs.edu/~achurch/
  59.     AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
  60.